package doorwifi.wd.patientsation.peripheral.mainapp.fragment;


import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import org.xutils.view.annotation.ViewInject;
import org.xutils.x;

import doorwifi.wd.patientsation.peripheral.mainapp.R;
import doorwifi.wd.patientsation.peripheral.mainapp.Activity.requestTrusteeshipActivity;

/**
 * Created by xuhuan on 2017/7/6.
 */

public class Trusteeship extends Fragment implements View.OnClickListener{

    @ViewInject(R.id.request_trusteeship)
    private Button request_trusteeship;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.xh_trusteeship_layout,null);
        x.view().inject(this,view);
        request_trusteeship.setOnClickListener(this);
        return view;
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.request_trusteeship:
                startActivity(new Intent(getActivity(),requestTrusteeshipActivity.class));
//                getActivity().finish();
                break;
        }
    }
}
